import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '@/views/Home';
import { importRouters } from '@/utils/router';

Vue.use(VueRouter);

const extraRouters = importRouters();

const routes = [
  ...extraRouters,

  {
    path: '/',
    name: 'Home',
    component: Home
  }
];

const router = new VueRouter({
  routes
});

export default router;
